package com.b.sts.service;

import org.springframework.core.io.FileSystemResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;


public interface CommService {
    /**
     * 上传
     *
     * @param file 文件
     * @return url
     */
    String upload(MultipartFile file);

    /**
     * 下载
     *
     * @param url url
     * @return 文件
     */
    ResponseEntity<FileSystemResource> get(String url);

    String uploadForm(MultipartFile file);

}
